package com.example.kotlin01

class Student {
    lateinit var name:String
}

fun main() {
    val student = Student()
    //延迟初始化的属性name，未初始化，不能访问
    println(student.name )
    //初始化之后能访问
    student.name = "2"
    println(student.name )
}